!
function(e) {
    var n = !1;
    if ("function" == typeof define && define.amd && (define(e), n = !0), "object" == typeof exports && (module.exports = e(), n = !0), !n) {
        var o = window.Cookies,
        t = window.Cookies = e();
        t.noConflict = function() {
            return window.Cookies = o,
            t
        }
    }
} (function() {
    function e() {
        for (var e = 0,
        n = {}; e < arguments.length; e++) {
            var o = arguments[e];
            for (var t in o) n[t] = o[t]
        }
        return n
    }
    function n(o) {
        function t(n, r, i) {
            var c;
            if ("undefined" != typeof document) {
                if (arguments.length > 1) {
                    if ("number" == typeof(i = e({
                        path: "/"
                    },
                    t.defaults, i)).expires) {
                        var a = new Date;
                        a.setMilliseconds(a.getMilliseconds() + 864e5 * i.expires),
                        i.expires = a
                    }
                    i.expires = i.expires ? i.expires.toUTCString() : "";
                    try {
                        c = JSON.stringify(r),
                        /^[\{\[]/.test(c) && (r = c)
                    } catch(e) {}
                    r = o.write ? o.write(r, n) : encodeURIComponent(r + "").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent),
                    n = (n = (n = encodeURIComponent(n + "")).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)).replace(/[\(\)]/g, escape);
                    var s = "";
                    for (var f in i) i[f] && (s += "; " + f, !0 !== i[f] && (s += "=" + i[f]));
                    return document.cookie = n + "=" + r + s
                }
                n || (c = {});
                for (var p = document.cookie ? document.cookie.split("; ") : [], d = /(%[0-9A-Z]{2})+/g, u = 0; u < p.length; u++) {
                    var l = p[u].split("="),
                    C = l.slice(1).join("=");
                    this.json || '"' !== C.charAt(0) || (C = C.slice(1, -1));
                    try {
                        var m = l[0].replace(d, decodeURIComponent);
                        if (C = o.read ? o.read(C, m) : o(C, m) || C.replace(d, decodeURIComponent), this.json) try {
                            C = JSON.parse(C)
                        } catch(e) {}
                        if (n === m) {
                            c = C;
                            break
                        }
                        n || (c[m] = C)
                    } catch(e) {}
                }
                return c
            }
        }
        return t.set = t,
        t.get = function(e) {
            return t.call(t, e)
        },
        t.getJSON = function() {
            return t.apply({
                json: !0
            },
            [].slice.call(arguments))
        },
        t.defaults = {},
        t.remove = function(n, o) {
            t(n, "", e(o, {
                expires: -1
            }))
        },
        t.withConverter = n,
        t
    }
    return n(function() {})
});

var comm_list=[]



!function(o){"use strict"
function t(t){o(".work-link").find(".tab span.active").removeClass("active")
var e,n,a="",l=o(t).attr("class")
if(o(t).addClass("active"),o.each(comm_list,function(t,i){l==i.slug&&(e=i.list,o.each(e,function(t,i){a+="<ul><li>"+i.tag+"</li>",n=i.link,o.each(n,function(o,t){a+='<li><a href="'+t.url+'" target="_blank">'+t.name+"</a></li>"}),a+="</ul>"}))}),o(".work-link").find(".tab span:first").hasClass("active")&&"1"==i("schl")){var s="assets/data/univ/"+i("univ")+".js"
o.getScript(s,function(){var t=univ_list.link,i=" "

o(".work-link").css("opacity","1").find(".info").hide().html(a).fadeIn(200).find("ul:nth-child(6)").html(t)})}else o(".work-link").css("opacity","1").find(".info").hide().html(a).fadeIn(200)}function i(o){var t={bkgd:"#ededed",srch:"baidu",schl:"0",prov:"1",univ:"1001"}
return Cookies.get(o)||t[o]}function e(o,t,i){Cookies.set(o,t,{expires:i||3650})}function n(t){o("body").css("background",t)}function a(t){

	if(o(t).addClass("active").siblings(".active").removeClass("active"),o(".search-hidden").remove(),o(t).hasClass("baidu"))o(".search-form").attr("action","https://www.baidu.com/s"),o(".search-keyword").attr({name:"word",placeholder:"百度一下，你就知道"})
else if(o(t).hasClass("weibo"))o(".search-form").attr("action","https://s.weibo.com/weibo"),o(".search-keyword").attr({name:"q",placeholder:"微博 - 随时随地发现新鲜事"})
else if(o(t).hasClass("bing"))o(".search-form").attr("action","https://cn.bing.com/search"),o(".search-keyword").attr({name:"q",placeholder:"微软 Bing 搜索"})
else if(o(t).hasClass("zhihu")){o(".search-form").attr("action","https://www.zhihu.com/search"),o(".search-keyword").attr({name:"q",placeholder:"知乎 - 有问题，就会有答案"})

var i=new Image
i.src=" "+Date.now(),i.onload=function(){o(".search-form").attr("action","https://www.google.com/search"),o(".search-form").prepend('<input class="search-hidden" type="hidden" name="tbm" value="isch">')}}

else if(o(t).hasClass("chinaso"))o(".search-form").attr("action","https://www.chinaso.com/newssearch/all/allResults"),o(".search-keyword").attr({name:"q",placeholder:"中国搜索 - 国家权威搜索引擎"})
else if(o(t).hasClass("baike")){o(".search-form").attr("action","https://www.baike.com/search"),o(".search-keyword").attr({name:"keyword",placeholder:"快懂百科 - 来这里，认识世界！"})



var i=new Image



i.src=" "+Date.now(),i.onload=function(){o(".search-form").attr("action"," "),o(".search-keyword").attr({name:"q"}),o(".search-form").prepend('<input class="search-hidden" type="hidden" name="hl" value="zh-CN">')}}o(".search-keyword").focus()}o.ajaxSetup({cache:!0}),n(i("bkgd")),t(o(".work-link").find(".tab span:first")),a(o(".search-tab").find("span."+i("srch"))),o(".work-link .tab").on("click","span",function(){t(o(this))}),o(".search-tab").on("click","span",function(){a(o(this)),e("srch",this.className.split(" ")[0])}),o("#setting-icon").on("click",function(){o(".work-link .info").hide().html('').fadeIn(200),o("#setting-bkgd select").val(i("bkgd")),o("#setting-schl select").val(i("schl")),o("#setting-prov select").val(i("prov")),o("#setting-bkgd select").change(function(){n(o(this).val())}),o.getScript("assets/data/univ.li.js",function(){function t(t,i){var e,n
o.each(univ_list,function(a,l){t==l.id&&(e=l.univs,n="",o.each(e,function(o,t){n+="<option value="+t.id+">"+t.name+"</option>"}),o("#setting-univ select").html(n),i&&o("#setting-univ select").val(i))})}t(o("#setting-prov select").val(),i("univ")),o("#setting-prov select").change(function(){t(o("#setting-prov select").val())})}),o("#setting-save").off("click").on("click",function(){e("bkgd",o("#setting-bkgd select").val()),e("schl",o("#setting-schl select").val()),o("#setting-univ select").val()&&(e("prov",o("#setting-prov select").val()),e("univ",o("#setting-univ select").val())),t(o(".work-link").find(".tab span:first"))})})}


(jQuery)
